package com.poetize.plus.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.time.LocalDateTime;

/**
 * @author zuosy
 * @created 2024/4/1 16:45
 */
public record HomeArticleVO(
        @Schema(description = "文章id")
        Long id,

        @Schema(description = "分类id")
        Long sortId,

        @Schema(description = "标签id")
        Long labelId,

        @Schema(description = "标签名称")
        String labelName,

        @Schema(description = "文章标题")
        String articleTitle,

        @Schema(description = "文章封面")
        String articleCover,

        @Schema(description = "文章内容")
        String articleContent,

        @Schema(description = "热度")
        Integer viewCount,

        @Schema(description = "点赞数")
        Long likeCount,

        @Schema(description = "评论数")
        Long commentCount,

        @Schema(description = "是否加密")
        Boolean encoderStatus,

        @Schema(description = "发布时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        LocalDateTime createTime
) {

}
